﻿@using CashFlow.Db.Entity;
@using CashFlow.Web.Common;
@using CashFlow.Web.Models.Fee.Result;
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout3.cshtml";
    var date = MyCommonTool.GetOrderDate();
    var statisticsInfo = ViewBag.StatisticsInfo as FeeStatisticsInfo;
    var fee = ViewBag.Lastest as FeeEntity;
}
<style type="text/css">
    .title {
        height: 40px;
        line-height: 40px;
        text-align: center;
        padding: 5px;
        font-size: 20px;
        font-weight: bold;
    }

    .list {
        width: 85%;
        margin: 0px auto;
        padding-bottom: 20px;
        margin-top: 10px;
    }

    .list-item {
        background-color: white;
        border-radius: 10px;
        font-size: 16px;
        margin-top: 15px;
    }

        .list-item:first-child {
            margin-top: 0px;
        }

    .list-item-row {
        height: 40px;
        line-height: 40px;
    }

    .list-item-row-title {
        text-align: center;
        font-size: 20px;
        font-weight: 800;
    }

    .list-item-row span:first-child {
        color: #999;
        width: 140px;
        display: inline-block;
        text-align: right;
    }

    .list-item-row span:last-child {
        margin-left: 10px;
    }

    .searchTable td {
        padding: 5px;
    }
</style>
<div class="title">服务费清单</div>
<div class="list">
    <div class="list-item">
        <div class="list-item-row list-item-row-title">合计</div>
        <div class="list-item-row"><span>订单利润合计:</span><span>@statisticsInfo.OrderProfitFee.MyToString()</span></div>
        <div class="list-item-row"><span>店长管理费合计:</span><span>@statisticsInfo.ShopManagerFee.MyToString()</span></div>
        <div class="list-item-row"><span>平台分红合计:</span><span>@statisticsInfo.BoundFee.MyToString()</span></div>
        <div class="list-item-row"><span>寄售服务费合计:</span><span>@statisticsInfo.ConsignmentSaleFee.MyToString()</span></div>
    </div>

    <div class="list-item">
        <div class="list-item-row list-item-row-title">今日服务费</div>
        <div class="list-item-row"><span>日期:</span><span>@date</span></div>
        <div class="list-item-row"><span>订单利润:</span><span>@fee.OrderProfitFee.MyToString()</span></div>
        <div class="list-item-row"><span>店长管理费:</span><span>@fee.ShopManagerManageFee.MyToString()</span></div>
        <div class="list-item-row"><span>平台分红:</span><span>@fee.BoundFee.MyToString()</span></div>
        <div class="list-item-row"><span>寄售服务费:</span><span>@fee.ConsignmentSaleFee.MyToString()</span></div>
    </div>

    <div style="margin: 0px auto; margin-top: 10px;">
        <table align="center" class="searchTable">
            <tr>
                <td align="right">日期:</td>
                <td>
                    <input type="text" class="layui-input" id="txtSearchDate" maxlength="10"
                           style="width: 140px;" readonly="readonly" placeholder="" />
                </td>
                <td>
                    <button type="button" id="btnSearch" class="layui-btn layui-btn-xm">
                        <i class="layui-icon layui-icon-search"></i>查询
                    </button>
                </td>
            </tr>
        </table>
    </div>

    <div class="list-item" style="display: none;" id="QueryResult">
        <div class="list-item-row list-item-row-title">查询结果</div>
        <div class="list-item-row"><span>订单利润:</span><span class="span2"></span></div>
        <div class="list-item-row"><span>店长管理费:</span><span class="span3"></span></div>
        <div class="list-item-row"><span>平台分红:</span><span class="span4"></span></div>
        <div class="list-item-row"><span>寄售服务费:</span><span class="span5"></span></div>
    </div>
</div>
<script type="text/javascript" src="~/Static/Js/fee.js?rand=0"></script>